package com.lagou.search.manager;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lagou.search.entity.Order;

/**
 * 订单通用服务接口
 * @author yzh
 * @since 2021/12/2
 **/
public interface IOrderManager extends IService<Order> {

    /**
     * 保存订单并同步ES
     * @param order 订单
     */
    void saveWithEs(Order order);

    /**
     * 保存订单并同步ES
     * @param id 订单ID
     */
    void removeWithEs(Long id);

}